import React from 'react';
import PropTypes from 'prop-types';
import IconTwo from '@/src/assets/comps/other/secondHeader/title_icon_two.png';

class HOneHeader extends React.Component {
  static defaultProps = {
    style: {},
    label: '',
    InsertPagination: false,
  };
  render() {
    return (
      <>
        <h3
          style={
            this.props.InsertPagination
              ? { fontWeight: 'bold', fontSize: '9pt', pageBreakBefore: 'always', ...this.props.style }
              : { fontWeight: 'bold', fontSize: '9pt', ...this.props.style }
          }
        >
          <img width={12} height={12} src={IconTwo} />
          {this.props.label}
        </h3>
      </>
    );
  }
}

HOneHeader.propsTypes = {
  label: PropTypes.string, //
  style: PropTypes.object, //
  InsertPagination: false, // 是否插入分页
};
export default HOneHeader;
